package com.example.erat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.erat.entity.Experiment;

import java.util.List;

public interface ExperimentService extends IService<Experiment> {

    /**
     * 根据课程ID获取实验列表
     */
    List<Experiment> getExperimentsByCourseId(String courseId);

    /**
     * 获取实验详情，包含课程信息
     */
    Experiment getExperimentDetail(String experimentId);

    /**
     * 检查实验是否已截止
     */
    boolean isExperimentOverdue(String experimentId);
}    